export default {
  data() {
    return {}
  },
  methods: {
    gotoPage(url, type = 'nav') {
      // console.log(url, 'url')
      if (type === 'nav') {
        uni.navigateTo({
          url: url
        })
      } else {
        uni.switchTab({
          url: url
        })
      }
    }
  },
  computed: {
    hasLogin() {
      // return this.$store.state.logined
		return uni.getStorageSync('isLogined')
    }
  }
}
